#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <string.h>

int main(int argc,char *argv[]){

    int fd;
    int ret = 0;
    fd = open("/dev/oled",O_RDWR);
    if(fd < 0){
        perror("open error \n");
        return fd;
    }

   ret =  write(fd,argv[1],strlen(argv[1]));
   if(ret < 0){
        perror("write erroe\n");
   }

    close(fd);
    return 0;

}